#!/bin/bash

# 检查NTP服务是否安装并运行
if command -v ntpd >/dev/null 2>&1 && systemctl is-active ntpd >/dev/null 2>&1; then
    echo "[+] NTP服务已安装并运行"
    exit 0
else
    echo "[-] NTP服务未安装或未运行"
    exit 1
fi

